using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Facebook.Components;

namespace Profile
{
    public partial class AssociateDlg : Form
    {
        public string m_fbId;
        FacebookService m_service;
        public AssociateDlg(FacebookService sr)
        {
            InitializeComponent();
            friendList1.Friends = sr.GetFriends();
            m_service = sr;
        }
        private void friendList1_FriendSelected(object sender, Facebook.Controls.FriendSelectedEventArgs e)
        {
            m_fbId = e.User.UserId;
            DialogResult = DialogResult.OK;
            Close();
        }
    }
}